package com.xmg.p2p.business.service;

import com.xmg.p2p.business.domain.UserBankinfo;

/**
 * @BelongsProject: jinrong-website
 * @BelongsPackage: com.xmg.p2p.business.mapper
 * @author: Andy
 * @date: 2021.4.17 14:04
 * @Description:
 * @since JDK 1.8
 */
public interface IUserBankService {
    /**
     * 通过用户的ID获取银行卡的信息
     * @param id    用户ID
     * @return  银行卡信息
     */
    UserBankinfo getBankinfoByUser(Long id);

    /**
     * 进行银行卡绑定
     * @param userBankinfo   银行卡的封装对象
     */
    void bindBank(UserBankinfo userBankinfo);
}
